package com.ers.validmodel;

import java.util.Date;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.format.annotation.DateTimeFormat;

public class UserInfoModel {
	private Integer id;
	@NotEmpty(message="{name.not.empty}")
	private String name;
	@NotEmpty(message="{sex.not.empty}")
	private String sex;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date birth;
	@NotEmpty(message="{experience.not.empty}")
	private String experience;
	@NotEmpty(message="{paperType.not.empty}")
	private String paperType;
	@NotEmpty(message="{paperId.not.empty}")
	private String paperId;
	@NotEmpty(message="{livePlace.not.empty}")
	private String livePlace;
	@NotEmpty(message="{mailbox.not.empty}")
	@Email(message="{mailbox.not.correct}")
	private String mailbox;
	@NotEmpty(message="{phone.not.empty}")
	private String phone;
	private String photopath;

	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	
	public Date getBirth() {
		return birth;
	}
	public void setBirth(Date birth) {
		this.birth = birth;
	}
	public String getExperience() {
		return experience;
	}
	public void setExperience(String experience) {
		this.experience = experience;
	}
	public String getPaperType() {
		return paperType;
	}
	public void setPaperType(String paperType) {
		this.paperType = paperType;
	}
	public String getPaperId() {
		return paperId;
	}
	public void setPaperId(String paperId) {
		this.paperId = paperId;
	}
	public String getLivePlace() {
		return livePlace;
	}
	public void setLivePlace(String livePlace) {
		this.livePlace = livePlace;
	}
	public String getMailbox() {
		return mailbox;
	}
	public void setMailbox(String mailbox) {
		this.mailbox = mailbox;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPhotopath() {
		return photopath;
	}
	public void setPhotopath(String photopath) {
		this.photopath = photopath;
	}

	
}
